package com.valuedaas.schoolsafety.common;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;

public interface Constants {

    public static String SYS_USER_ID = "5715aca990b96e3144eb0e63";

    public final static String SESSION_KEY = "ENVBOX_USER";
    public final static String REMEMBERME_COOKIE = "_tkrm";
    public final static String ENCODE_DES_KEY = "ki7qsds3";

    public static final String EXCEL_XLS = "xls";
    public static final String EXCEL_XLSX = "xlsx";
    public static final String CSV = "csv";

    /**
     * 允许上传的文件类型
     */
    public static final List<String> FILE_TYPES = Arrays.asList("jpg", "jpeg", "bmp", "png", "gif", "csv", "bin", "apk",
            "svg", "svgz", "xls", "xlsx", "pdf");

    /**
     * 封装，不需要过滤的list列表
     */
    public static List<Pattern> NO_NEED_PERMISSION =
            Arrays.asList(
                    Pattern.compile("user/signin.do"),
                    Pattern.compile("wechat/portal.do")
            );

    /**
     * 各类上传文件 存储路径
     *
     * @author chenhua
     */
    public static interface FILE_PATH {
        //默认通用图片存储路径
        static String DEFAULT_IMAGE = "/default/";
        //用户头像存储路径
        static String USER_AVATOR_PATH = "/avator/";
        //标准文件存储路径
        static String STD_FILE_PATH = "/standard/";
        //资源导入文件存储路径
        static String FILE_IMPORT_PATH = "/import/";
        //资源导入文件存储路径
        static String FILE_EXPORT_PATH = "/export/";
    }


}